package com.yenlien.traceyun.business.config;

import com.yenlien.traceyun.business.service.AppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author: bigwangy@sina.com
 * @create: 2020-03-10
 * @description:
 **/

@Component
public class TraceCommandLineRunner implements CommandLineRunner {


    @Autowired
    private AppService appService;

    @Override
    public void run(String... args) throws Exception {
        appService.register();
    }
}
